#import "HeatwaveZealotCell.h"


@implementation HeatwaveZealotCell

- (instancetype)initWithFrame:(CGRect)frame {
	self = [super initWithFrame:frame];
	if (self) {
		//self.contentView.backgroundColor = UIColor.whiteColor;
	}
	return self;
}

- (void)setVirtuous:(HeatwaveZealotModel *)virtuous {
	_virtuous = virtuous;

	//: 配置cell的UI



	self.nostalgicDazzleKeyholeLabel.text = [virtuous.ponderGrin stringValue];

	self.zebraLabel.text = [NSString stringWithFormat:@"Count: %lu", (unsigned long)virtuous.jellySpiralTonic.count];

	self.wanderXenialEchoesLabel.text = [virtuous.ponderGrin stringValue];

}
- (UIView *)wandererHarbingerAmazingView {
	if (!_wandererHarbingerAmazingView) {
	
        _wandererHarbingerAmazingView = [[UIView alloc] init];
	}
	return _wandererHarbingerAmazingView;
}

//: self.kaleidoscopeBtn 的点击事件
- (void)action_5 {}

- (UIView *)crispView {
	if (!_crispView) {
	
        _crispView = [[UIView alloc] initWithFrame:CGRectZero];
	}
	return _crispView;
}

- (void)tranquilityInitUIKit {
	//: 描述_0
	[self.contentView addSubview:self.wandererHarbingerAmazingView];
	[self.wandererHarbingerAmazingView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(117);
		make.height.mas_equalTo(108);
		make.top.equalTo(@(24));
	}];


    //: 描述_1
    UIImageView *xenophobe = [[UIImageView alloc] initWithFrame:CGRectZero];
    xenophobe.contentMode = UIViewContentModeScaleAspectFill;
    xenophobe.clipsToBounds = YES;
    xenophobe.layer.cornerRadius = 3;
    xenophobe.layer.masksToBounds = YES;
    UIImage *driftwoodFlourishGracious = [UIImage imageNamed:@"images/image_1.png"];
    if (driftwoodFlourishGracious) {
	    xenophobe.image = driftwoodFlourishGracious;
    }
    self.jellyVoyageZestImageView = xenophobe;
    [self.contentView addSubview:xenophobe];
	[self.jellyVoyageZestImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(197);
		make.height.mas_equalTo(182);
	}];


    //: 描述_2
    self.nostalgicDazzleKeyholeLabel = [UILabel new];
    self.nostalgicDazzleKeyholeLabel.size = CGSizeMake(34, 52);
    self.nostalgicDazzleKeyholeLabel.left = 22;
    self.nostalgicDazzleKeyholeLabel.top = 48;
    self.nostalgicDazzleKeyholeLabel.text = @"label_2";
    self.nostalgicDazzleKeyholeLabel.font = [UIFont systemFontOfSize:14 weight:UIFontWeightRegular];
    self.nostalgicDazzleKeyholeLabel.textColor = [UIColor colorWithRed:153/255.0 green:185/255.0 blue:81/255.0 alpha:0.8];
    self.nostalgicDazzleKeyholeLabel.textAlignment = NSTextAlignmentCenter;
    self.nostalgicDazzleKeyholeLabel.numberOfLines = 0;
    [self.contentView addSubview:self.nostalgicDazzleKeyholeLabel];


    //: 描述_3
    self.humbleImageView = [UIImageView new];
    self.humbleImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.humbleImageView.clipsToBounds = YES;
    self.humbleImageView.layer.cornerRadius = 8;
    self.humbleImageView.layer.masksToBounds = YES;
    UIImage *whistle = [UIImage imageNamed:@"images/image_3.png"];
    if (whistle) {
	    self.humbleImageView.image = whistle;
    }
    [self.contentView addSubview:self.humbleImageView];
	[self.humbleImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(189);
		make.height.mas_equalTo(101);
	}];


    //: 描述_4
    self.unityFreedomTextField = [UITextField new];
    self.unityFreedomTextField.frame = CGRectMake(35, 37, 77, 60);
    [self.contentView addSubview:self.unityFreedomTextField];


    //: 描述_5
    self.kaleidoscopeBtn = [[UIButton alloc] initWithFrame:CGRectZero];
    self.kaleidoscopeBtn.frame = CGRectMake(28, 20, 96, 101);
    UIImage *xenial = [UIImage imageNamed:@"images/icon_5.png"];
    if (xenial) {
	    [self.kaleidoscopeBtn setImage:xenial forState:UIControlStateNormal];
    }
    [self.kaleidoscopeBtn setTitle:@"button_5" forState:UIControlStateNormal];
    [self.kaleidoscopeBtn setTitle:@"button_selected_5" forState:UIControlStateSelected];
    [self.kaleidoscopeBtn setTitleColor:[UIColor colorWithRed:26/255.0 green:27/255.0 blue:138/255.0 alpha:0.8] forState:UIControlStateNormal];
    [self.kaleidoscopeBtn setTitleColor:[UIColor colorWithRed:88/255.0 green:49/255.0 blue:153/255.0 alpha:0.8] forState:UIControlStateSelected];
    [self.kaleidoscopeBtn addTarget:self action:@selector(action_5) forControlEvents:UIControlEventTouchUpInside];
    [self.contentView addSubview:self.kaleidoscopeBtn];


    //: 描述_6
    UITextView *diligentBlaze = [[UITextView alloc] init];
    self.vividKeepsakeTextView = diligentBlaze;
    [self.contentView addSubview:diligentBlaze];
	[self.vividKeepsakeTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(200);
		make.height.mas_equalTo(91);
		make.bottom.equalTo(@(15));
	}];


    //: 描述_7
    self.zebraLabel = [[UILabel alloc] init];
    self.zebraLabel.text = @"label_7";
    self.zebraLabel.font = [UIFont systemFontOfSize:15 weight:UIFontWeightMedium];
    self.zebraLabel.textColor = [UIColor colorWithRed:134/255.0 green:56/255.0 blue:61/255.0 alpha:0.6];
    self.zebraLabel.textAlignment = NSTextAlignmentCenter;
    //: 不用理会的骚操作 = self.zebraLabel.numberOfLines = 1;
    NSInteger nostalgicResonate = 1;
    if (nostalgicResonate>11 && nostalgicResonate < 5601) {
	    nostalgicResonate = 77;
	    NSString *delightfulQuiver = [NSString stringWithFormat:@"%ld", (long)nostalgicResonate];
	    if (delightfulQuiver.length>61 && [delightfulQuiver isEqualToString:self.zebraLabel.text]) {
		    nostalgicResonate = delightfulQuiver.integerValue * 5;
	    }
    }
    self.zebraLabel.numberOfLines = nostalgicResonate;
    [self.contentView addSubview:self.zebraLabel];
	[self.zebraLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(162);
		make.height.mas_equalTo(33);
		make.top.equalTo(@(10));
		make.bottom.equalTo(@(21));
	}];


    //: 描述_8
    UILabel *braveFlowLuminous = [[UILabel alloc] init];
    braveFlowLuminous.frame = CGRectMake(5, 32, 49, 193);
    braveFlowLuminous.text = @"label_8";
    braveFlowLuminous.font = [UIFont systemFontOfSize:18 weight:UIFontWeightRegular];
    braveFlowLuminous.textColor = [UIColor colorWithRed:251/255.0 green:224/255.0 blue:61/255.0 alpha:0.8];
    braveFlowLuminous.textAlignment = NSTextAlignmentRight;
    braveFlowLuminous.numberOfLines = 0;
    self.wanderXenialEchoesLabel = braveFlowLuminous;
    [self.contentView addSubview:braveFlowLuminous];

	//: 描述_9
	[self.contentView addSubview:self.crispView];
	[self.crispView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(49);
		make.height.mas_equalTo(175);
		make.top.equalTo(@(30));
	}];
}


@end